//
//  LWTableViewCell.m
//  1.28  weibo
//
//  Created by mac on 15/2/18.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import "LWTableViewCell.h"
#import "LWPhotoCollectionViewCell.h"
#import "LWstatuses.h"
#import "LWUser.h"
#import "LWPhotos.h"
#import "LWOriginalView.h"
#import "LWRetweetedView.h"
#import "LWBottomView.h"
@interface LWTableViewCell ()

@property (weak, nonatomic) IBOutlet LWOriginalView *originalView;
@property (weak, nonatomic) IBOutlet LWRetweetedView *retweetedView;
@property (weak, nonatomic) IBOutlet LWBottomView *bottomView;

/********************************************************************************/




@end

@implementation LWTableViewCell

- (void)setStatus:(LWstatuses *)status{

    _status = status;
    
    self.originalView.status = _status;
    self.retweetedView.status = _status.retweeted_status;
    self.bottomView.status = _status;
    
   }

- (CGFloat)cellHeightWithStatus:(LWstatuses *)status{

    self.status = status;
    [self layoutIfNeeded];
    return CGRectGetMaxY(self.bottomView.frame) + 10 ;
}

@end
